<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class PlaceState extends AppModel {
    
    public $primaryKey = 'places_id';
    
    ////////////////////////
    public $belongsTo = array (
        'PlaceCountry'=>array (
            'foreignKey' => 'countries_id'
        ),        
        'Place' => array(
            'foreignKey' => 'places_id'
        )
    );
    
    ////////////////////////
    public $hasMany = array (
        'PlaceDepartment'=>array (
            'foreignKey' => 'states_id'
        )
    );
    
}

?>
